<% content_for :css do %>
  <%= stylesheet_link_tag 'valleyer/exercise/exerciseBase'  %>
<%= stylesheet_link_tag 'valleyer/exercise/add'  %>
<%= stylesheet_link_tag 'valleyer/exercise/oldExercise'  %>
<% end %>
<div class="header">
            <div class="newlogo">创建新活动</div>
        </div>
        <div class="single">
            <div class="title">
                <div class="pic"><%= image_tag('valleyer/new_active.jpg') %></div>
                <div class="cont">
                    <p>请选择一张电脑里的图片作为主题活动的图片：</p>
                    <dl>
                        <dt><input type="text" name="textfield"></dt>
                        <dd><%= image_tag('valleyer/add_lookfor.jpg') %></dd>
                    </dl>
                    <div class="descript"></div>
                    <div class="descript"><p>.支持JPG、JPEG、PNG、GIF格式的图片</p></div>
                    <div class="descript"><p>.上传的照片大小请不要超过2M</p></div>
                    <div class="descript"><p>.照片的尺寸请不要200*200像素</p></div>
                    <div class="descript"></div>
                    <div class="load"><input type="submit" name="load" value="确定"><input type="submit" name="upload" value="上传"></div>
                </div>
            </div>

          <% form_for @meet,
        :url => meets_url,
        :method => :post,
        :html => {
          :id => 'new_meet_form'
        } do |f| %>
            <div class="board">
                <div class="addtitle">活动名称</div>
                <div class="actname"><%= f.text_area :name %></div>
                <div class="addtitle">活动内容</div>
                <div class="actcontent"><%= f.text_area :des %></div>
                <div class="addtitle">活动规则</div>
                <div class="actcontent"><textarea name="activerule"></textarea></div>
                <div class="addtitle">活动时间</div>
                <div class="actname">
                    <dl>
                        <dt><%= f.date_select :star_at %></dt>
                        <dd>至</dd>
                        <dt><%= f.date_select :end_at %></dt>
                    </dl>
                </div>
                <div class="botton">
                    <dl>
                        <dt><%= link_to_function image_tag('valleyer/act_load.jpg'), "$('new_meet_form').submit()" %></dt>
                        <dd><%= image_tag('valleyer/act_recover.jpg') %></dd>
                    </dl>
                </div>
            </div>
          <% end %>

        </div>